package ctype

type StorageType string

const (
	LOCAL StorageType = "local"
	QINIU StorageType = "qiniu"
)

func GetImageType(str StorageType) ImageType {
	switch str {
	case LOCAL:
		return Local
	case QINIU:
		return QiNiuYun
	default:
		return Local
	}
}
